let log4js = require('log4js');
 log4js.configure({
    appenders: {fileout: { type: "file", filename: "./logs/event.log" },consoleout: { type: "console" }},
    categories: {default: { appenders: ["fileout","consoleout"], level: "info" }}
})
let log = log4js.getLogger("event");
log.level = "info"; // default level is OFF - which means no logs at all.

const config=require("./common/config").mysql
log.log("mysql.host:",config.host);

